<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/header.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户注册</title>
</head>
<body>
<center>
	<form action="${ctx}/user/manager?func=login" method="post" onsubmit="return validate();">
		<p>
			用户名：<input name="username" type="text" id="name">
		</p>
		<p>
			密 &nbsp;码：<input name="password" type="password" id="password">
		</p>
		<p>
			<input type="submit" value="登录" />
			<input type="reset" value="重置" />
		</p>
	</form>
	<p>
			<a href="${ctx}/user/manager?func=logout">游客</a>
	</p>
	${message}
</center>
</body>
<script>
	function validate(){
		var name=document.getElementById("name");
		var password=document.getElementById("password");
		if(name.value==""){
			alert("名字不为空");
			name.focus();
			return false;
		}
		if(password.value==""){
			alert("密码不能为空");
			password.focus();
			return false;
		}
	}	
</script>

</html>